﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/List.Master"  AutoEventWireup="true" CodeBehind="Sys_LogOperation_List.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.SystemManager.Log.Sys_LogOperation_List"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">		
    <div class="query_area">
		标识：<asp:TextBox ID="txtID" runat="server"  cssClass="input2" MaxLength="36"></asp:TextBox>&nbsp;&nbsp;
		功能操作标识：<asp:TextBox ID="txtLogFunctionID" runat="server"  cssClass="input2" MaxLength="36"></asp:TextBox>&nbsp;&nbsp;
		数据表名：<asp:TextBox ID="txtTableName" runat="server"  cssClass="input2" MaxLength="200"></asp:TextBox>&nbsp;&nbsp;
		操作类型（增、删、改）：<asp:DropDownList ID="ddlOperationType" runat="server" cssClass="input2" ></asp:DropDownList>&nbsp;&nbsp;
		操作时间：<asp:TextBox ID="dtpCreateTime" runat="server" cssClass="input2" onfocus="setday(this);"></asp:TextBox>&nbsp;&nbsp;
        <asp:Button runat="server" ID="btnQuery" Text="查 找" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" OnClick="btnQuery_Click" />
    </div>            
    <div class="button_area">
        <asp:Button runat="server" ID="btnAdd" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="新 增"/>
        <asp:Button runat="server" ID="btnDelete" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="删 除" 
            OnClientClick="javascript:return getNoSelectionAlert('chkID','请选择要删除的记录后在执行此操作！');"             
            onclick="btnDelete_Click" />
    </div>
            
    <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" id="tGrid">
		<thead>  
            <th align="center" width="30px">
                <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
            </th>
            <th align="center">标识</th>
            <th align="center">功能操作标识</th>
            <th align="center">数据表名</th>
            <th align="center">操作类型（增、删、改）</th>
            <th align="center">操作时间</th>
            <th width="120px">操作</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList">
			<ItemTemplate>
				<tr>
					<td align="center" >
						<input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
					</td>
					<td><%#  DataBinder.Eval(Container.DataItem,"ID") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"LogFunctionID") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"TableName") %></td>
					<td><%# Honestysoft.EnumHelper.EnumInstance.GetEnumDataText(DataBinder.Eval(Container.DataItem,"OperationType")+"") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"CreateTime") %></td>
					<td>
						<%# GetButtonScript(DataBinder.Eval(Container.DataItem,"ID")+"") %>
					</td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
        <tr>
            <td colspan="7" style="line-height: 28px;text-align:left;">
                <frameworkwebcontrols:aspnetpager id="AspNetPager1" runat="server"
                    alwaysshow="true" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pageindexboxtype="DropDownList"
                    prevpagetext="上一页" showpageindex="true" showcustominfosection="Right" submitbuttontext="Go"
                    textafterpageindexbox="页" textbeforepageindexbox="转到" currentpagebuttonposition="End"
                    layouttype="Div" custominfotextalign="Right" custominfohtml="共%RecordCount%条记录。第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                    direction="LeftToRight" onpagechanged="AspNetPager1_PageChanged">
                </frameworkwebcontrols:aspnetpager>            
            </td>
        </tr>
    </table>
</asp:Content>